package arocms.security;

public interface SecurityService {
    public static enum Permission {ALLOWED, DENIED};
    
    
    /**
     * @return A role assigned to a user.
     */
    Role authenticate(String username, String password);
    /**
     * Checks wether current user has access to resource specified by <code>resourceName<code>.
     * @param resourceName Name which represents a resource to which user wants to get access.
     * @param role Current user role.
     */
    public Permission checkAccess(String resourceName, Role role);
    public void configure();
}
